验证配置文件
对于半自动安装,您需要提供一个供安装程序参考的配置文件,安装才能够继续。然而,即使生成了模板,也可能在更新配置文件后,某些格式会意外损坏。
为防止任何损坏,安装程序提供了一种检查机制来帮助您验证配置文件是否有效。
要验证配置文件,请输入以下命令:
SV_Cloud_Installer -c/--verifyConfig filename.yaml安装程序会打印一条消息,指示配置文件有效,或者可能会显示一些错误,指示配置文件的哪部分不正确。-c/--verifyConfig 选项不能与安装程序的任何其他选项一起使用。
结果
如果配置通过验证,那么将显示以下示例消息:
The configuration file a.yaml is valid. You are ready to install.
如果配置未通过验证,那么将显示以下示例消息:
# This example illustrates a message when a mandatory field is missing in the configuration file
Verifying config file: a.yaml
'ipAddress' is a required property
On instance['cluster']['site1']['BareMetalServers'][0]['serviceIp']:
{'gateway': '10.174.27.129',
'netmask': '255.255.255.192'}